package com.cos.hospital.model.bean.user;

import java.util.List;

/**
 * Created by yby on 2018/7/23
 */
public class SessionBean {
    /**
     * userName : 13980594826
     * role : 0.0
     * clientType : 1.0
     * clientId : app
     * permissions : ["client","loginuser","医生"]
     * grantTime : 2018-10-16 07:54:47
     * userId : 100059.0
     * tenantId : 1.0
     * impersonatorTenantId : 1.0
     * multiTenancy : {"isEnabled":false,"resolvers":["Abp.Web.MultiTenancy.DomainTenantResolveContributor, Abp.Web,
     * Version=1.5.0.0, Culture=neutral, PublicKeyToken=null","Abp.Web.MultiTenancy.HttpHeaderTenantResolveContributor, Abp.Web,
     * Version=1.5.0.0, Culture=neutral, PublicKeyToken=null","Abp.Web.MultiTenancy.HttpCookieTenantResolveContributor, Abp.Web,
     * Version=1.5.0.0, Culture=neutral, PublicKeyToken=null"]}
     * multiTenancySide : 1.0
     */
    private String userName;//登录账户
    private int role;//角色:0-医生
    private int clientType;//客户端类型：1-医生端
    private String clientId;
    private String grantTime;
    private int userId;//用户id（医生id）
    private int tenantId;
    private int impersonatorTenantId;
    private MultiTenancyBean multiTenancy;
    private int multiTenancySide;
    private List<String> permissions;//权限相关

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public int getClientType() {
        return clientType;
    }

    public void setClientType(int clientType) {
        this.clientType = clientType;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getGrantTime() {
        return grantTime;
    }

    public void setGrantTime(String grantTime) {
        this.grantTime = grantTime;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getTenantId() {
        return tenantId;
    }

    public void setTenantId(int tenantId) {
        this.tenantId = tenantId;
    }

    public int getImpersonatorTenantId() {
        return impersonatorTenantId;
    }

    public void setImpersonatorTenantId(int impersonatorTenantId) {
        this.impersonatorTenantId = impersonatorTenantId;
    }

    public MultiTenancyBean getMultiTenancy() {
        return multiTenancy;
    }

    public void setMultiTenancy(MultiTenancyBean multiTenancy) {
        this.multiTenancy = multiTenancy;
    }

    public int getMultiTenancySide() {
        return multiTenancySide;
    }

    public void setMultiTenancySide(int multiTenancySide) {
        this.multiTenancySide = multiTenancySide;
    }

    public List<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<String> permissions) {
        this.permissions = permissions;
    }

    public static class MultiTenancyBean {
        /**
         * isEnabled : false
         * resolvers : ["Abp.Web.MultiTenancy.DomainTenantResolveContributor, Abp.Web, Version=1.5.0.0, Culture=neutral,
         * PublicKeyToken=null","Abp.Web.MultiTenancy.HttpHeaderTenantResolveContributor, Abp.Web, Version=1.5.0.0, Culture=neutral,
         * PublicKeyToken=null","Abp.Web.MultiTenancy.HttpCookieTenantResolveContributor, Abp.Web, Version=1.5.0.0, Culture=neutral,
         * PublicKeyToken=null"]
         */

        private boolean isEnabled;
        private List<String> resolvers;

        public boolean isIsEnabled() {
            return isEnabled;
        }

        public void setIsEnabled(boolean isEnabled) {
            this.isEnabled = isEnabled;
        }

        public List<String> getResolvers() {
            return resolvers;
        }

        public void setResolvers(List<String> resolvers) {
            this.resolvers = resolvers;
        }
    }
}
